Return

Edit Task: SetPossibility ResourceCost

Description

The SetPossibility ResourceCost attribute under EditTask defines the resource cost for a single task possibility.

Parameters

ParameterDescription
PossibilityNameA string of text with a comma delimited list of resources in the possibility. Order is not required and the resource names should not be in quotes.
ResourceNameA string of text of the resource that is being defined within the command.
CostA positive double value representing the cost of the resource.
RateOptions are PerAssignment or PerSecond.
SetupAppliesA Boolean value that determines whether cost should apply to setup times.
BreakdownAppliesA Boolean value that determines whether cost should apply to breakdown times.

Examples

Set all cost settings for ResA in the possibility containing ResA and ResB.

PATCH api/task/TaskA

Body:

{

"SetResourceDetails" : {

"PossibilityName" : "ResA,ResB",

"ResourceName" : "ResA",

"ResourceCost" : {

"Cost" : "2",

"Rate" : "PerAssignment",

"SetupApplies" : "True",

"BreakdownApplies" : "False" }

}

}